// 自定义全屏指令
export const fullscreen = {
  inserted(dom) {
    dom.addEventListener('click', () => {
      if (!document.fullscreen) {
        document.documentElement.requestFullscreen()
        return
      }
      document.exitFullscreen()
    })
  }
}
